home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / cdmt / Makefile < prev   
Makefile  |  1995-07-20  |  4KB  |  153 lines

  1. # Makefile to build a custom+ SSO for skunkware
  2. # hess@sco.com
  3. #
  4.  
  5. HERE=`pwd`
  6. CFG=-config cdmt.config
  7. CDCFG=-config cdmt.cd.config
  8.  
  9. #all:: cdmt.config cdmt.cd.config sso ssoCD
  10. all:: sso 
  11.  
  12. # If we are exporting to the system from this SSO, then this 
  13. # rule will wipe out the existing (installed) SSO, making it uninstalled
  14. # and perhaps leaving custom databases in an awkward state.
  15. # so be warned
  16. ssoCD : input/default.prd cdmt.cd.config Makefile
  17.     rm -rf $@    
  18.     CDMT_DIR=$(HERE) cdmtParse  $(CDCFG)
  19.     CDMT_DIR=$(HERE) cdmtCompress  $(CDCFG)
  20.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  21. sso: input/default.prd cdmt.config Makefile
  22.     rm -rf $@    
  23.     CDMT_DIR=$(HERE) cdmtParse  $(CFG)
  24.     CDMT_DIR=$(HERE) cdmtCompress  $(CFG)
  25.     CDMT_DIR=$(HERE) cdmtArchive -f $(CFG)
  26.  
  27. #install ::
  28. #    @echo To install the skunk SSO on this machine run 
  29. #    @echo as root 
  30. #    @echo make export enable 
  31. #
  32. # install the archives/TAPE onto my machine, two passes, Load and Enable
  33.  
  34. # must be root to do this
  35. install:: load enable
  36.  
  37. # custom load is -L, -z is the image directory
  38. export load:: archives/TAPE
  39.     custom -p SKUNK:default -L -z $(HERE)/archives/TAPE
  40.  
  41. # custom enable, this requires that it be "loaded", then we can populate 
  42. # the /usr space. 
  43. enable: /opt/P/SKUNK
  44.     custom -p SKUNK:default -e
  45.  
  46. no_skunk really_clean_sys : disable remove clean_system
  47. # custom disable, but dont remove
  48. disable:
  49.     custom -p SKUNK:default -d
  50. # really remove the files from /opt/?/SKUNK
  51. remove:
  52.     custom -p SKUNK:default -r
  53. # remove SKUNK from the /opt area
  54. clean_system::
  55.     rm -rf /opt/?/SKUNK /var/opt/K/SKUNK
  56.  
  57. # export the ssoCD to my machine
  58. # do a quick install on my own machine
  59. # start by disabling the skunk on my machine 
  60. # only works if the perms in the ssoCD dir allow those binaries to be
  61. # executed and read ...  to get this right run "make fixall"
  62. export_CD:  ssoCD 
  63.     -custom -p SKUNK:default -d
  64.     rm -rf /opt/?/SKUNK /var/opt/K/SKUNK
  65.     -mkdir -p /opt/P/SKUNK/default /opt/K/SKUNK /var/opt/K/SKUNK
  66.     ( cd ./ssoCD ; for i in opt/P/SKUNK/default/5.0; do \
  67.         ln -s $(HERE)/$$i /$$i ; \
  68.     done )
  69.     ( cd ./ssoCD ; for i in opt/K/SKUNK/*; do \
  70.         mkdir -p /$$i ; \
  71.     done )
  72.     ( cd ./ssoCD ; for i in opt/K/SKUNK/*/*; do \
  73.         ln -s $(HERE)/$$i /$$i ; \
  74.     done )
  75.  
  76. # just a quick fix, for stuff we know we need to tweak ...
  77. # dont run this on a readonly ssoCD 
  78. fixup_perms fp quickfix: 
  79.     find ./ssoCD -name "ccs" -exec chmod +x {} \;  
  80.     chmod +x ./ssoCD/opt/K/SKUNK/xmcd/1.4/libdi.d/configure.sh 
  81.  
  82. # this is not quick at all ...
  83. # and you must be root, should be done after a "make export" 
  84. # and before make enable
  85. fixall fix_all fixperms fixperm: 
  86.     custom -p SKUNK:default -v quick -x >/dev/null
  87.  
  88. # to test the prd database file
  89. parse.prd parse prd :
  90.     cdmtParse -prd input/default.prd  $(CFG) 
  91.  
  92. # after a compress and parse
  93. archCD : 
  94.     CDMT_DIR=$(HERE) cdmtArchive -f $(CDCFG)
  95. arch : 
  96.     CDMT_DIR=$(HERE) cdmtArchive -f $(CFG)
  97.  
  98.  
  99.  
  100. fresco: ../X11/Fresco/fresco.cmpnt
  101. acm : ../Games/acm-4.7/acm.cmpnt
  102. xpilot : ../Games/xpilot-3.3.1/xpilot.cmpnt
  103. gds : ../Tools/gds/gds.cmpnt
  104. groff: ../Tools/groff-1.09/groff.cmpnt
  105. xmcd: ../X11/xmcd-1.4/xmcd.cmpnt
  106. xsw: ../X11/xsw/xsw.cmpnt
  107. xv: ../X11/xv-3.10/xv.cmpnt
  108. perl: ../Tools/perl-5.000/perl.cmpnt
  109.  
  110. CMPNTS=../X11/Fresco/fresco.cmpnt \
  111.     ../Games/acm-4.7/acm.cmpnt \
  112.     ../Games/xpilot-3.3.1/xpilot.cmpnt \
  113.     ../Tools/gds/gds.cmpnt \
  114.     ../Tools/groff-1.09/groff.cmpnt \
  115.     ../X11/xmcd-1.4/xmcd.cmpnt \
  116.     ../Tools/perl-5.000/perl.cmpnt \
  117.     ../X11/xsw/xsw.cmpnt \
  118.     ../X11/xv-3.10/xv.cmpnt
  119.  
  120. .PRECIOUS:$(CMPNTS)
  121. $(CMPNTS) : cdmt.config 
  122.     cdmtParse -cmpnt $@
  123.     cdmtCompress -cmpnt $@
  124.     #cdmtArchive 
  125.  
  126.  
  127. # some rules for building and test install of one cmpnt
  128. # first run 
  129. # make xmcd arch 
  130. # then 
  131. # make xmcd_try 
  132. # we disable, them remove, then load from the arch, then enable ... 
  133. # this can be done for other cmpnts/packages as well
  134. xmcd_try : 
  135.     custom -p SKUNK:default -d SKUNK:xmcd
  136.     custom -p SKUNK:default -r SKUNK:xmcd 
  137.     custom -p SKUNK:default -L SKUNK:xmcd -z $(HERE)/archives/TAPE
  138.     custom -p SKUNK:default -e SKUNK:xmcd
  139. gds_try : 
  140.     custom -p SKUNK:default -d SKUNK:gds
  141.     custom -p SKUNK:default -r SKUNK:gds 
  142.     custom -p SKUNK:default -L SKUNK:gds -z $(HERE)/archives/TAPE
  143.     custom -p SKUNK:default -e SKUNK:gds
  144. groff_try : 
  145.     custom -p SKUNK:default -d SKUNK:groff
  146.     custom -p SKUNK:default -r SKUNK:groff 
  147.     custom -p SKUNK:default -L SKUNK:groff -z $(HERE)/archives/TAPE
  148.     custom -p SKUNK:default -e SKUNK:groff
  149.  
  150.  
  151.